using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class ApplyConfiguration : Base.BaseEntityConfiguration<Apply>
    {

        public override void Configure(EntityTypeBuilder<Apply> builder)
        {
            base.Configure(builder);

            builder.ToTable("apply");

            builder.Property(x=>x.AppId).HasColumnName("app_id").HasColumnOrder(1);
            builder.Property(x=>x.AppTime).HasColumnName("app_time").HasMaxLength(20000).HasColumnOrder(2);
            builder.Property(x=>x.AppText).HasColumnName("app_text").HasMaxLength(20000).HasColumnOrder(3);
            builder.Property(x=>x.AuditId).HasColumnName("audit_id").HasMaxLength(20000).HasColumnOrder(4);
            builder.Property(x=>x.IsOK).HasColumnName("isok").HasMaxLength(20000).HasColumnOrder(5);
        }

    }
}